<?php $this->pageTitle=Yii::app()->name; ?>
        <div class="box-title">
            <span>Products:</span>
        </div>
        <div class="box-products">
            <?php foreach ($model as $oneDrug):?>
            <div class="product">
                <a href="<?php echo 'index.php?r=drug/view&id='.$oneDrug->id; ?>">
                <img src="<?php echo 'data/images/'.$oneDrug->images;?>" width="120px" height="120px"/>
                <p class="product-name"><?php echo $oneDrug->name; ?></p>
                </a>
            </div>
            <?php endforeach;?>
            <div class="clear"></div>
            <?php
                $this->widget('CLinkPager', array('pages'=>$pages,));
            ?>
        </div>
